package com.jml.mycomponentscan;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 测试 Spring 中获取自定义 bean
 * @author: Glorze
 * @since: 2020/2/18 18:19
 */
public class Test {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(CompentScan.class);
		Bean bean = context.getBean(Bean.class);
		System.out.println(bean);
	}
}
